package com.syaccp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.syaccp.response.StaffTaskDate;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_staff")
public class Staff implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "制作员id")
    private Integer makeId;
    @ApiModelProperty(value = "制作员姓名")
    private String makeName;
    @ApiModelProperty(value = "制作人所属组id")
    private Integer groupId;
    @ApiModelProperty(value = "制作人所属组名")
    private String groupName;
    @ApiModelProperty(value = "制作人员公司id")
    private Integer companyId;
    @ApiModelProperty(value = "制作人员公司名称")
    private String companyName;

    @ApiModelProperty(value = "制作员状态,0.空闲 1.忙碌")
    private Integer status;

    @ApiModelProperty(value = "创建者id")
    private Integer createBy;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "删除标识（1：可用，2：不可用）")
    private Integer delFlag;

    @ApiModelProperty(value = "制作员任务,当状态为空闲时默认为0,状态为忙碌时为制作员手上任务数量")
    @TableField(exist = false)
    private Integer orderDetailNum;

    @TableField(exist = false)
    private Integer index;

    @ApiModelProperty(value = "任务时间对象,数据是制作员最早任务完成时间和制作员最早任务完成时间")
    @TableField(exist = false)
    private StaffTaskDate staffTaskDate;

    @ApiModelProperty(value = "字符串状态")
    @TableField(exist = false)
    private String statusMsg;


    @ApiModelProperty(value = "字符串控件颜色")
    @TableField(exist = false)
    private String color;



}
